import { ref } from 'vue';
import * as api from '#/api/core/class.ts'
export const getcomlist = (type) => {


  const comclasslist = ref([])


  const getclasslist = async () => {
    try {

      let temp = await api.$getalllist({
        type: type
      })

      comclasslist.value = temp
      console.log('获取分类数据', comclasslist.value);


    } catch { }
  }
  getclasslist()

  return {
    comclasslist
  }
}
